import $http from './request.js'

export function recognizeIdCard(data) {
  return $http.post('/user/recognize/id/card', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function recognizeIdCardBack(data) {
  return $http.post('/user/recognize/id/cardBackground', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function recognizeDriverLicense(data) {
  return $http.post('/user/recognize/driver/license', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function recognizeDrivingLicense(data) {
  return $http.post('/user/recognize/driving/license', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function recognizeBusinessLicense(data) {
  return $http.post('/user/recognize/business/license', data, {
    header: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
